package com.frkj.yuan.activity;

import android.view.View;
import android.widget.TextView;

import androidx.core.content.ContextCompat;

import com.frkj.yuan.R;
import com.frkj.yuan.base.BaseActivity;
import com.frkj.yuan.dialog.SelectRefundMonyDialog;
import com.frkj.yuan.utils.FullScreenUtils;

import butterknife.BindView;
import butterknife.OnClick;
import cn.ycbjie.ycstatusbarlib.bar.YCAppBar;

/**
 * 作者：菲菲 on 2022/2/18 15:59
 * company：丰蓉信息科技有限公司
 * 申请退款界面
 */
public class RefundMoneyActivity extends BaseActivity implements View.OnClickListener {
    @BindView(R.id.base_title)
    TextView mTitleMesg;
    private SelectRefundMonyDialog dialog;

    @Override
    public int getLayoutId() {
        return R.layout.activity_refund_view;
    }

    @Override
    public void initLayoutView() {
        mTitleMesg.setText("申请退款");
        FullScreenUtils.getInstance().fullScreen(RefundMoneyActivity.this,true);

    }

    @OnClick({R.id.base_back, R.id.refund_money, R.id.commmit_refund_msg})
    public void OnClick(View view) {
        switch (view.getId()) {
            case R.id.base_back:
                finishWitchAnimation();
                break;
            case R.id.refund_money:
                selectRefundDialog();
                break;
            case R.id.commmit_refund_msg:
                openActivityWitchAnimation(RefundScheduleActivity.class);
                break;
        }
    }
    private void selectRefundDialog() {
         dialog = new SelectRefundMonyDialog(RefundMoneyActivity.this);
        dialog.show();
        dialog.findViewById(R.id.commmit_refund).setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.commmit_refund:
                dialog.dismiss();
                break;
        }
    }
}
